Java toLowerCase() method

    toLowerCase() method

    This method will allow you to provide the string in lowercase.

    Syntax-

    public String toLowerCase()  
    
    public String toLowerCase(Locale locale)  

    Example-

    public class Simple{  
       public static void main(String[] args) {      
           String s1="HELLO WELCOME";  
           String s2=s1.toLowerCase();
           System.out.println(s2);
       }
    }  

    Output-

    Java To lower